//
//  YXJView.h
//  Piece
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 Northeast Dianli University. All rights reserved.
//

#import "ZHBaseView.h"
#import "YXJMusicModel.h"
#import <AVFoundation/AVFoundation.h>

typedef void(^ClickBlock) ();


@protocol MusicPlayDelegate <NSObject>

- (void)musicPlay;

@end

@interface YXJView : ZHBaseView
@property (nonatomic, assign) id<MusicPlayDelegate> delegate;

@property (nonatomic, strong) UIImageView *userImageView;

@property (nonatomic, strong) UILabel *realName;

@property (nonatomic, strong) UILabel *nickName;

@property (nonatomic, strong) UILabel *musicName;

@property (nonatomic, strong) UIButton *playButton;

@property (nonatomic, strong) UILabel *dateLabel;

@property (nonatomic, strong) UIImageView *playImageView;

@property (nonatomic, retain) AVPlayer *player;

@property (nonatomic, assign) BOOL isPlay;

@property (nonatomic, assign) NSInteger pageNumber;

@property (nonatomic, copy) ClickBlock clickBlock;

@property (nonatomic, assign) NSInteger otherNum;

@end
